module vfs.documenttype;

enum DocumentType: ubyte {
    PLAIN_TEXT,
    D_FILE,
    XML_FILE,
    C_FILE
}

pure DocumentType getTypeByString(in string name) nothrow {
    switch (name) {
    case "d":
        return DocumentType.D_FILE;
    default:
        return DocumentType.PLAIN_TEXT;
    }
}
